package com.zhn;

import com.spring.ZhnApplicationContext;
import com.zhn.service.UserService;
import com.zhn.service.UserServiceImpl;

public class Test {
    public static void main(String[] args) {
        ZhnApplicationContext context = new ZhnApplicationContext(AppConfig.class);

        UserService userService = (UserService)context.getBean("userService");
        userService.test();
        System.out.println(userService);

    }
}
